﻿// My methods here.
//-----------------------------------------------------------------------
// <Copyright file=Config company=DHPD>
// Copyright (c) DHPD Corporation (http://dhpd.edu.vn). All rights reserved.
// </copyright>
// <author>HP</author>
//-----------------------------------------------------------------------


using System;
using System.Collections.Generic;
using KM.DAT;
using KM.ENT;
using KM.Models;

namespace KM.BUS
{
    /// <summary>
    /// This is busConfig class
    /// </summary>

    public class busConfig
    {
        public busConfig()
        {
            //
            // TODO: Add constructor logic here
            //
        }
        public void createEdit(entConfig entC)
        {
            datConfig datC = new datConfig();
            datC.createEdit(entC);
        }
        public List<entConfig> getAll()
        {
            datConfig datC = new datConfig();
            List<entConfig> lst = new List<entConfig>();
            lst = datC.getAll();
            return lst;
        }
        public entConfig getInfo(int Id)
        {
            datConfig datC = new datConfig();
            entConfig entCNew = new entConfig();
            entCNew = datC.getInfo(Id);
            return entCNew;
        }
        public bool delete(int Id)
        {
            datConfig datC = new datConfig();
            datC.delete(Id);
            return true;
        }
    }
}
